import ConnectionProxy from "./ConnectionProxy";

export default {
    build(bosh) {
        const delegate = new JitsiMeetJS.JitsiConnection(null, null, {
            hosts: {
                domain: "meet.jitsi",
                muc: "muc.meet.jitsi" // FIXME: use XEP-0030
            }, bosh
        });
        return new ConnectionProxy(delegate)
    }
}